package com.bigegg.employee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bigegg.employee.mapper.PostDeliverMapper;
import com.bigegg.employee.domain.PostDeliver;
import com.bigegg.employee.service.IPostDeliverService;

/**
 * 招聘公告职位投递Service业务层处理
 * 
 * @author sun
 * @date 2022-08-16
 */
@Service
public class PostDeliverServiceImpl implements IPostDeliverService 
{
    @Autowired
    private PostDeliverMapper postDeliverMapper;

    /**
     * 查询招聘公告职位投递
     * 
     * @param id 招聘公告职位投递主键
     * @return 招聘公告职位投递
     */
    @Override
    public PostDeliver selectPostDeliverById(Long id)
    {
        return postDeliverMapper.selectPostDeliverById(id);
    }

    /**
     * 查询招聘公告职位投递列表
     * 
     * @param postDeliver 招聘公告职位投递
     * @return 招聘公告职位投递
     */
    @Override
    public List<PostDeliver> selectPostDeliverList(PostDeliver postDeliver)
    {
        return postDeliverMapper.selectPostDeliverList(postDeliver);
    }

    /**
     * 新增招聘公告职位投递
     * 
     * @param postDeliver 招聘公告职位投递
     * @return 结果
     */
    @Override
    public int insertPostDeliver(PostDeliver postDeliver)
    {
        return postDeliverMapper.insertPostDeliver(postDeliver);
    }

    /**
     * 修改招聘公告职位投递
     * 
     * @param postDeliver 招聘公告职位投递
     * @return 结果
     */
    @Override
    public int updatePostDeliver(PostDeliver postDeliver)
    {
        return postDeliverMapper.updatePostDeliver(postDeliver);
    }

    /**
     * 批量删除招聘公告职位投递
     * 
     * @param ids 需要删除的招聘公告职位投递主键
     * @return 结果
     */
    @Override
    public int deletePostDeliverByIds(Long[] ids)
    {
        return postDeliverMapper.deletePostDeliverByIds(ids);
    }

    /**
     * 删除招聘公告职位投递信息
     * 
     * @param id 招聘公告职位投递主键
     * @return 结果
     */
    @Override
    public int deletePostDeliverById(Long id)
    {
        return postDeliverMapper.deletePostDeliverById(id);
    }
}
